{"version":3,"file":"menuform.bundle.map.js","names":["this","BX","Landing","UI","exports","main_core","landing_loc","landing_env","landing_main","landing_ui_form_baseform","landing_ui_form_menuitemform","ui_draganddrop_draggable","_templateObject","_templateObject2","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","babelHelpers","defineProperty","getOwnPropertyDescriptors","defineProperties","MenuForm","_BaseForm","inherits","_this","options","undefined","classCallCheck","possibleConstructorReturn","getPrototypeOf","call","Dom","addClass","layout","forms","Collection","FormCollection","Type","isArray","form","addForm","draggable","Draggable","container","getBody","context","parent","window","dragElement","type","DROP_PREVIEW","depth","margin","offset","y","onMenuItemRemove","bind","assertThisInitialized","append","getAddItemLayout","createClass","value","contains","add","body","subscribe","invalidateCache","event","children","getChildren","data","element","remove","serialize","_this2","draggableElements","getDraggableElements","parentDepth","getElementDepth","allChildren","reduce","acc","current","currentDepth","getByLayout","onAddButtonClick","preventDefault","pageType","Env","getInstance","getType","content","text","Loc","getMessage","href","includes","allowedTypes","Field","LinkUrl","TYPE_BLOCK","TYPE_PAGE","TYPE_CRM_FORM","TYPE_CRM_PHONE","TYPE_CATALOG","field","Link","siteId","getSiteId","landingId","Main","id","MenuItemForm","fields","showForm","setTimeout","input","enableEdit","_input$childNodes","slicedToArray","childNodes","textNode","range","document","createRange","sel","getSelection","setStart","innerText","collapse","removeAllRanges","addRange","getAddButton","_this3","cache","remember","Tag","render","taggedTemplateLiteral","_this4","BaseForm","Form","DragAndDrop"],"sources":["menuform.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,QAAUF,KAAKC,GAAGC,SAAW,CAAC,EACtCF,KAAKC,GAAGC,QAAQC,GAAKH,KAAKC,GAAGC,QAAQC,IAAM,CAAC,GAC3C,SAAUC,EAAQC,EAAUC,EAAYC,EAAYC,EAAaC,EAAyBC,EA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